package bird.queue.array_queue;

import bird.queue.array_queue.ArrayQueue;

/**
 * @author sijunqiang
 * @data 2021/5/22 18:52
 * @description: 测试数组队列
 */
public class MainArrayQueue {

    // Test ArrayQueue  enqueue and dequeue
    public static void main(String[] args) {
        ArrayQueue<Integer> arrayQueue=new ArrayQueue<>();

        // Test add enqueue
        for (int i = 0; i < 50; i++) {
            arrayQueue.enqueue(i);
            System.out.println(arrayQueue);
        }

        //Test dequeue
        Integer dequeue = arrayQueue.dequeue();
        System.out.println(arrayQueue);

        // Test look getFront
        Integer front = arrayQueue.getFront();
        System.out.println("front = " + front);
    }
}
